#ifndef PROJECTMODEL_H
#define PROJECTMODEL_H

#include <QAbstractItemModel>

class ProjectModel : public QAbstractItemModel
{
public:
  ProjectModel(QObject* parent);
  ~ProjectModel();



  /*
   *  QAbstractItemModel implementation
   */
  int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
  QModelIndex QAbstractItemModel::createIndex ( int row, int column, void * ptr = 0 ) const;
  QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const;
  Qt::ItemFlags flags ( const QModelIndex & index ) const;
  QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
  QModelIndex parent ( const QModelIndex & index );
  int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
  bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole );

pubic slots:

  bool submit();

private:

  QMap<QString, QVariant>      m_projectData;
};

#endif // PROJECTMODEL_H
